-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
host-containers: migrate to use config file #3777
host-containers: migrate to use config file #3777
Conversation
1076397
to
903c5ea
Compare
^ update template to |
903c5ea
to
176c883
Compare
^ address @webern's comments |
3346ec3
to
9dad1a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching my review status as it needs a rebase and then needs testing. Here is the test plan that we have suggested, this should be pasted into the testing section of the PR description
- [ ] Ran `cargo +nightly udeps` to ensure all unused dependencies have been removed
- [ ] Pass the settings on first boot via userdata. Verify config.
- [ ] cat /etc/os-release record your build ID include commit sha, record this
- [ ] Use apiclient to update relevant settings at runtime. Verify config was updated correctly.
- [ ] Downgrade to older version.
- [ ] verify connectivity
- [ ] cat /etc/os-release to verify lower version
- [ ] verify that migrations have changed the metadata/settings as expected (i.e. they are gone from the datastore, or lists have been changed back)
- [ ] Upgrade to newer version.
- [ ] verify connectivity
- [ ] cat /etc/os-release to verify version
- [ ] verify config file
This removes the dependency on calling the Settings API. It instead depends on a config file (defaults to /etc/host-containers/host-containers.toml) Signed-off-by: Sam Berning <[email protected]>
Signed-off-by: Sam Berning <[email protected]>
Signed-off-by: Sam Berning <[email protected]>
9dad1a7
to
1e9e8f3
Compare
^ testing summary:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Looks good to me as well |
Issue number:
Closes #3627
Description of changes:
Removes dependency on the API model from host-containers by changing it to use a config file rendered from the settings.
Testing done:
cargo +nightly udeps
to ensure all unused dependencies have been removedTerms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.